use model::version_manifest::*; // use ../model/ all pub things

use crate::Parse; // lib.rs

impl Parse<&str> for VersionManifest {
  type Error = serde_json::Error;

  fn parse(value: &str) -> Result<Self, Self::Error> {
    // cast value(&str) to VersionManifest ?
    serde_json::from_str::<VersionManifest>(value)
  }
}

impl Parse<&str> for Latest {
  type Error = serde_json::Error;

  fn parse(value: &str) -> Result<Self, Self::Error> {
    serde_json::from_str::<Latest>(value)
  }
}

impl Parse<&str> for MVersion {
  type Error = serde_json::Error;

  fn parse(value: &str) -> Result<Self, Self::Error> {
    serde_json::from_str::<MVersion>(value)
  }
}
